package com.star.demo.config.knife4j;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Knife4j配置类
 *
 * @author zhouhengzhe
 */
@Configuration
public class Knife4jConfig {
    @Bean
    public OpenAPI customOpenApi() {
        return new OpenAPI()
                .info(new Info()
                        .title("demoAPI")
                        .version("1.0")
                        .description("demo服务")
                        .termsOfService("https://blog.csdn.net/zhouhengzhe?type=blog")
                        .contact(new Contact().name("zhz小白").url("https://blog.csdn.net/zhouhengzhe?type=blog").email("1871229316@qq.com"))
                );
    }
}